
select value from 
::fn_listextendedproperty(@ExtendedProperty, null,
 null, null, null, null, null)

if @@rowcount <> 0
EXEC sp_dropextendedproperty @name = @ExtendedProperty;

	